<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    {js href='/public/static/jquery/jquery-1.11.0.min.js' /}
    {js href='/public/static/layui/layui.js' /}
    {CSS href="/public/static/layui/css/layui.css" /}
    {CSS href="__ADDONSTATIC__/css/style.css" /}
</head>
<div style="padding: 0px 10px;">
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">搜索内容：</label>
                        <div class="layui-input-inline">
                            <input type="text" name="content" placeholder="你想搜索什么？" value="{:input('content')}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline" style="width: 410px;">
                        <label class="layui-form-label">时间：</label>
                        <div class="layui-input-inline">
                            <input style="width: 300px;" value="{:input('time')}" class="layui-input" type="text" name="time" id="test10">
                        </div>
                    </div>
                    <div class="layui-inline" >
                        <label class="layui-form-label">标记处理?：</label>
                        <div class="layui-input-inline">
                            <select name="status">
                                <option {if $status ==-1} selected {/if} value="-1">全部</option>
                                <option {if $status ==1} selected {/if} value="1">已标记</option>
                                <option {if $status ==0} selected {/if} value="0">未标记</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <div class="layui-input-inline" style="width: 100px;">
                            <button class="layui-btn layui-btn-primary" lay-submit lay-filter="formDemo">搜索应用</button>
                        </div>
                    </div>
                </div>
            </form>
    <table class="layui-table" lay-size="sm">
        <thead>
        <tr>
            {foreach name="dataTitle" item="v"}
            <th>{$key}</th>
            {/foreach}
        </tr>
        </thead>
        <tbody>
        {volist name="data" id="vo" empty="暂时没有数据"}
        <tr>
            {volist name="vo" id="v"}
            <td>{$v|raw}</td>
            {/volist}
        </tr>
        {/volist}
        </tbody>
    </table>
    {$page|raw}
</div>

<script>
    var layer;
    layui.use(['layer','laydate','form'],function () {
        layer = layui.layer;
        laydate = layui.laydate;
        laydate.render({
            elem: '#test10'
            ,type: 'datetime'
            ,range: '~'
        });
    })

    function delFormsData(id) {
        layer.confirm('确定删除吗？', {
            btn: ['是','不'], //按钮
            offset: ['15%', '30%'],
            shade: 0.1,
        }, function(){
            $.post("{:addonUrl('delFormsData')}",{fid:id},function (res) {
                if(res.status==1){
                    layer.alert(res.msg,function (index) {
                        window.location.reload();
                        layer.close(index);
                    })

                }else{
                    layer.alert(res.msg)
                }
            })
        }, function(){

        });
    }
    function setFormStatus(id,val) {
        layer.confirm('确定操作吗？', {
            btn: ['是','不'], //按钮
            offset: ['15%', '30%'],
            shade: 0.1,
        }, function(){
            $.post("{:addonUrl('setFormStatus')}",{fid:id,val:val},function (res) {
                if(res.status==1){
                    layer.alert(res.msg,function (index) {
                        window.location.reload();
                        layer.close(index);
                    })
                }else{
                    layer.alert(res.msg)
                }
            })
        }, function(){

        });
    }
</script>
</body>
</html>